﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml;
using System.Xml.Linq;

using Centrica.Task.Model;
using Centrica.Task.App.Model;

namespace Centrica.Task.App.Model
{
    public class TaskModelFactoryProvider
    {
        protected static TaskModelFactoryProvider __factoryProvider = null;

        private TaskModelProvider modelProvider = null;

        protected TaskModelFactoryProvider()
        {
            this.modelProvider = new TaskModelProvider();
        }

        public static TaskModelFactoryProvider StaticInstance
        {
            get
            {
                if (TaskModelFactoryProvider.__factoryProvider == null)
                {
                    TaskModelFactoryProvider.__factoryProvider =
                        new TaskModelFactoryProvider();
                }
                return TaskModelFactoryProvider.__factoryProvider;
            }
        }

        public ITaskProvider Provider
        {
            get
            {
                return this.modelProvider;
            }
        }
    }
}
